package com.cy.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;

import com.cy.dao.PayWayDao;
import com.cy.entity.PayWay;
import com.cy.service.PayWayService;




@Service("payWayService")
@Transactional
public class PayWayServiceImpl implements PayWayService {
	@Autowired
	private PayWayDao payWayDao;
	
	@Override
	public PayWay queryObject(Long id){
		return payWayDao.queryObject(id);
	}
	
	@Override
	public List<PayWay> queryList(Map<String, Object> map){
		return payWayDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return payWayDao.queryTotal(map);
	}
	
	@Override
	public void save(PayWay payWay){
		payWayDao.save(payWay);
	}
	
	@Override
	public void update(PayWay payWay){
		payWayDao.update(payWay);
	}
	
	@Override
	public void delete(Long id){
		payWayDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		payWayDao.deleteBatch(ids);
	}

	@Override
	public List<PayWay> findByCode(String code) {
		return payWayDao.findByCode(code);
	}

}
